package com.gl.common.enums;

/**
 * <p>Description:</p>
 *
 * @author gaol
 * @version 1.0
 * @date 2017/5/12
 */
public enum ErrorCode {

    REQUEST_NOT_FOUND(404, "资源不存在"),
    SERVER_ERROR(500, "系统错误"),
    PARAMETER_ERROR(1000, "参数不存在"),
    SERVICE_ERROR(1001, "业务逻辑错误");


    public int code;

    public String message;

    ErrorCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int code() {
        return this.code;
    }

    public String message() {
        return this.message;
    }
}
